package com.ruoyi.applet.service;


import com.ruoyi.applet.domain.Order;
import com.ruoyi.applet.domain.OrderStatus;
import com.ruoyi.applet.domain.vo.OrderByUserId;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单列表Service接口
 *
 * @author ruoyi
 * @date 2024-12-13
 */
public interface IOrderService
{
    List<Order> selectOrderUerIdOrderList( Long usrId);

    OrderByUserId selectOrderUerIdList( Long usrId, Long productSpecValueId);

    List<OrderByUserId> selectOrderProductSpecValueIdList( Long usrId, Long orderStatus);

    List<OrderStatus> selectAllByOrderIdStatusList();

    OrderByUserId selectByOrderStatusInteger( Long usrId, Long orderStatus);

    List<OrderByUserId> selectByOrderStatusList( Long usrId);

    Integer updateByOrderIdInteger( Long usrId, String orderId);

    Integer updateOrderIdAndOrderUerIdInteger( Long usrId, Long status, String orderId);

    OrderByUserId selectAllByOrderIdAndOrderUerIdOrderByUserId( Long usrId, String orderId);

    Integer insertAllInteger( Long usrId,String orderId,String orderTotal, String orderReceiverName,String orderReceiverPhone, String orderReceiverAddress,Long orderGoodsId, Long orderNumber, String orderTransactionId);

    Order selectAllByOrderGoodsIdCount( Long usrId, Long orderGoodsId);

    Integer updateOrderGoodsIdAndOrderUerIdInteger( Long usrId, String orderId, Long orderNumber);

    Integer deleteByOrderIdInteger( Long usrId, String orderId);

    Order selectOrderUerIdOrder( String orderId);

    Integer updateAllByOrderIdInteger( Long orderStatus, String orderId);

    Integer updateOrderIdAndOrderUerId( String orderId, Long usrId, BigDecimal price);

    Order selectOrderNotesAndOrderUerId( Long usrId, Long spikesGoodId);

    Order selectOrderNotesOrder( String orderId);
}
